package com.tdkj.action.backstage.risevalue;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;

import com.tdkj.action.BaseAction;
import com.tdkj.model.user.BeanUser;
import com.tdkj.service.risevalue.IBeanPlateQuotationUseInfoService;

public class PlateQuotationUseInfoAction extends BaseAction {
    
	private IBeanPlateQuotationUseInfoService plateQuotationUseInfoService;
	
	private List<BeanUser> users ;
	
	
	public String execute() {
		Criteria criteria = plateQuotationUseInfoService.getBaseDao().getSession()
		.createCriteria(BeanUser.class)
		.add(Restrictions.isNotEmpty("quotationUseInfos"));
		
		this.queryByPage(criteria, "plateQuotationUseInfoAction.action", 10);
		return "success";
	}


	/**
	 * @return the users
	 */
	public List<BeanUser> getUsers() {
		return users;
	}


	/**
	 * @param users the users to set
	 */
	public void setUsers(List<BeanUser> users) {
		this.users = users;
	}


	@Resource
	public void setPlateQuotationUseInfoService(
			IBeanPlateQuotationUseInfoService plateQuotationUseInfoService) {
		this.plateQuotationUseInfoService = plateQuotationUseInfoService;
	}
	
	
	
}
